package main
import "fmt"
func main(){
	
	fmt.Printf("函数开始\n")
	
	var a int
	
	fmt.Println(1)
	
	fmt.Println(2)
	
	defer fmt.Println(3)
	
	
	defer fmt.Println(4)
	
	a = 10 / a	//注意，除数不能为0
	
	defer fmt.Println(5)
	
	fmt.Println(a)
	
	fmt.Printf("函数结束\n")
}
